package request;

public class RequestFactory {
	
	public Request getRequest(RequestType type){
		
		switch (type){
			case AllProjects:
				return new AllProjectsRequest();
			case ChangeCredentials:
				return new ChangeCredentialsRequest();
			case Logout:
				return new LogoutRequest();
			case NewProject:
				return new NewProjectRequest();
			case Login:
				return new NewSessionRequest();
			case NewUser:
				return new NewUserRequest();
			case ProjectRecord:
				return new ProjectRecordRequest();
			case RemoveProject:
				return new RemoveProjectRequest();
			case Save:
				return new SaveRequest();
			default:
				return null;
		}
		
	}
	
}
